package org.csu.logistics.Controller;

import org.csu.logistics.Service.SumUpService;
import org.csu.logistics.common.CommonResponse;
import org.csu.logistics.vo.SumUp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@CrossOrigin(origins = "http://47.100.72.98:80")
@RequestMapping("/SumUpController/")
public class SumUpController {

    @Autowired
    SumUpService sumUpService;

    //接口21 总结
    @PostMapping("/sumUp")
    @CrossOrigin(origins = "http://47.100.72.98:80")
    @ResponseBody
    CommonResponse<Object> Sum_up(){
        return sumUpService.Sum_up();
    }
}
